# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  def get_small_buttons_container_width(small_buttons)
    max_width = 508
    width = small_buttons.length * 127 
    if width  > max_width
      max_width
    else
      width
    end
  end

  def get_large_buttons_container_width(large_buttons)
    large_buttons.length * 195
  end
	
	def pretty_date(date)
		date.strftime("%b %d, %Y at %H:%M:%S")
	end
end